<?php
if (@is_array($GLOBALS['system']['needs_translation'])) {
	?>
	<div class="hidden" style="visibility: visible;" id="layer_appconfig_translate">
	<form action="index.php" method="post">
	<input type="hidden" name="sAction" value="appconfig-translate">
	<input type="hidden" name="sView" value="<?php print $_REQUEST['sRedirectView'] ?>">
	<table class="boxborder" cellspacing="0">
		<tr>
			<td class="boxhandle" colspan="2">Translate</td>
		</tr>
	<?php
	foreach ($GLOBALS['system']['needs_translation'] as $sView => $sStrings) {
		?>
		<tr>
			<td class="listtop" colspan="2"><?php print $sView ?></td>
		</tr>
		<?php
		foreach ($sStrings as $sThisString) {
			?>
			<tr>
				<td class="fieldname"><?php print htmlspecialchars($sThisString) ?></td>
				<td class="fieldvalue"><input type="text" name="oTranslation[<?php print $sView ?>][<?php print htmlspecialchars($sThisString) ?>]">
			</tr>
			<?php
		}
	}
	?>
		<tr>
			<td class="boxbody center" colspan="2">
				<input type="submit" value="Translate">
				<input type="button" value="Close" onClick="layerHide('layer_appconfig_translate');">
			</td>
		</tr>
	</table>
	</form>
	</div>
	<?php
}
?>
